package co.fitstart.entity.utils;

import java.util.List;

/**
 * 
 * @author downpour
 * @author lute
 */
public abstract class MathUtils {

    /**
     * Sums up elements in the List
     * 
     * @param elements  the List of integers to be summed up
     * @return          the total of the integer List
     */
    public static Integer sum(List<Integer> elements) {
        Integer result = 0;
        for (Integer i : elements) {
            result += i;
        }
        return result;
    }

}
